import request from '@/utils/request'

// 断层分布图评估
export function sourceOfDanger(data) {
    return request({
      url: '/fxfzaqbz/data/faultage',
      method: 'post',
      data: data
    })
  }

  // 地震构造图评估
export function destructionAssess(data) {
    return request({
      url: '/fxfzaqbz/data/seismotectonics',
      method: 'post',
      data: data
    })
  }

    // 历史地震分布图评估
export function destructionAssess1(data) {
  return request({
    url: '/fxfzaqbz/data/historicalEarthquake',
    method: 'post',
    data: data
  })
}

    // 获取图件模板
export function getPicReport(query) {
    return request({
      url: '/map/getTypeNameByType/'+query,
      method: 'get',
    })
  }

  // 上传房屋地震灾害风险评估
export function uploadHouse(data) {
    return request({
      url: '/fxfzaqbz/data/saveRiskAssessment',
      method: 'post',
      data: data
    })
  }